import request from '@/utils/request'

// 查询列表
export function listout(query) {
  return request({
    url: '/outPut/out/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getout(stockOutId) {
  return request({
    url: '/outPut/out/' + stockOutId,
    method: 'get'
  })
}


// 新增
export function addout(data) {
  return request({
    url: '/outPut/out',
    method: 'post',
    data: data
  })
}

// 修改
export function updateout(data) {
  return request({
    url: '/outPut/out',
    method: 'put',
    data: data
  })
}
// 提交
export function submitout(data) {
  return request({
    url: '/outPut/out/submit',
    method: 'post',
    data: data
  })
}

// 删除
export function delout(stockOutIds) {
  return request({
    url: '/outPut/out/' + stockOutIds,
    method: 'delete'
  })
}
